package com.guoxin.concurrentcy.chapter2.tax;

/**
 * @author guoxin
 * @date 2019/7/1
 */
public class SimpleCalculatorStrategy implements CalculatorStrategy {

    private static final double SALARY_POINT = 0.1;
    private static final double BONUS_POINT = 0.1;

    @Override
    public double calculate(double salary, double bonus) {
        return SALARY_POINT * salary + BONUS_POINT * bonus;
    }
}
